#!/bin/sh
[ $# -ne 2 ] && {
  echo "Usage: $0 currentVersion newVersion."
  exit 1
}
cd ..
echo changing version from $1 to $2.
find . -name "pom.xml" | xargs sed -i '' -e "s/$1/$2/g"
echo complete.